﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace hcms
{
	public partial class ColumnList : System.Web.UI.Page
	{
		protected hcms.Admin.Model model = Global.model;
		protected void Page_Load(object sender, EventArgs e)
		{
			int page = 0;
			if (Request["page"] != null)
				page = int.Parse(Request["page"]);
			string cid = Request["cid"];
			int tid = model.getColTemplate(cid);
			string url = string.Format( "/Templates/t{0}.aspx?cid={1}&page={2}", tid, cid, page );
			Server.Execute(url);
		}
	}
}